import type { Total } from './types.js';

import { requestClient } from '#/api/request';

export const getWechatopenUserCount = async () => {
  return requestClient.get<Total>(`/uctoo/wechatopen_users/count`);
};

export const getMinishopOrderCount = async () => {
  return requestClient.get<Total>(`/uctoo/minishop_order/count`);
};

export const getWechatpayTransactionCount = async () => {
  return requestClient.get<Total>(`/uctoo/wechatpay_transaction/count`);
};
